/* map_utils.h */

#ifndef DODO_MAP_UTILS_H
#define DODO_MAP_UTILS_H

namespace dodo_plot
{

inline double in_180(double lon)
{
	while(lon > 180.0)
		lon -= 360.0;
	while(lon < -180.0)
		lon += 360.0;
	return lon;
}

//inline double adjust_cross_180(double lon, double min_lon, double max_lon)
//{
//	return lon < min_lon ? lon + 360.0 : lon;
//}

}

#endif //DODO_MAP_UTILS_H

